import React from "react"
import { Navigate } from 'react-router-dom'

const Authorized = (props) => {
  const hasAuth = true
  const { children } = props
  return (hasAuth ? children : <Navigate to="/404" />)
}

export default Authorized